---
import { SQLCoursePage } from '../../components/SQLCourse/SQLCoursePage.tsx';
import { SQLCourseVariantPage } from '../../components/SQLCourseVariant/SQLCourseVariantPage';
import SkeletonLayout from '../../layouts/SkeletonLayout.astro';
---

<SkeletonLayout
  title='Master SQL'
  briefTitle='Learn SQL from the ground up'
  ogImageUrl='https://assets.roadmap.sh/guest/sql-course-bjc53.png'
  description='Learn SQL from the ground up. This SQL programming class is designed to help you go from beginner to expert through hands-on practice with real-world scenarios, mastering everything from basic to complex queries.'
  keywords={[
    'sql',
    'database',
    'database management',
    'database administration',
  ]}
  canonicalUrl='/courses/sql'
  jsonLd={[
    {
      '@context': 'https://schema.org',
      '@type': 'Course',
      '@id': 'https://roadmap.sh/courses/sql',
      name: 'Master SQL',
      description:
        'A comprehensive SQL course designed to take you from beginner to advanced levels, featuring 55+ lessons, 100+ challenges, an integrated IDE, and an AI tutor. Ideal for developers, data analysts, and anyone working with data.',
      provider: {
        '@type': 'Organization',
        name: 'roadmap.sh',
        url: 'https://roadmap.sh',
      },
      publisher: {
        '@type': 'Organization',
        name: 'roadmap.sh',
        url: 'https://roadmap.sh',
      },
      timeRequired: 'PT60H',
      isAccessibleForFree: false,
      offers: {
        '@type': 'Offer',
        url: 'https://roadmap.sh/courses/sql',
        price: '59.99',
        priceCurrency: 'USD',
        availability: 'https://schema.org/InStock',
        category: 'paid',
      },
      image: ['https://assets.roadmap.sh/guest/sql-course-bjc53.png'],
      coursePrerequisites: [],
      teaches: [
        'SQL syntax and queries',
        'Data filtering and sorting',
        'Joins and subqueries',
        'Aggregate functions',
        'Stored procedures',
        'Views and indexes',
        'Transactions and ACID properties',
        'Query optimization techniques',
      ],
      educationalLevel: 'Beginner to Advanced',
      aggregateRating: {
        '@type': 'AggregateRating',
        ratingValue: '4.8',
        ratingCount: 500,
      },
      inLanguage: 'en',
      review: [
        {
          '@type': 'Review',
          reviewBody:
            'This course was absolutely brilliant! The integrated database environment to practice what I learned was the best part.',
          author: {
            '@type': 'Person',
            name: 'Gourav Khunger',
          },
        },
        {
          '@type': 'Review',
          reviewBody:
            'Kamran has clearly put a lot of thought into this course. The content, structure and exercises were all great.',
          author: {
            '@type': 'Person',
            name: 'Meabed',
          },
        },
        {
          '@type': 'Review',
          reviewBody:
            'I already knew SQL but this course taught me a bunch of new things. Practical examples and challenges were great. Highly recommended!',
          author: {
            '@type': 'Person',
            name: 'Mohsin Aheer',
          },
        },
      ],
      educationalCredentialAwarded: {
        '@type': 'EducationalOccupationalCredential',
        name: 'Certificate of Completion',
        credentialCategory: 'Certificate',
        url: 'https://roadmap.sh/courses/sql',
      },
      hasCourseInstance: [
        {
          '@type': 'CourseInstance',
          courseMode: 'Online',
          courseWorkload: 'PT60H',
        },
      ],
    },
  ]}
>
  <div class='course-variant-1'>
    <SQLCoursePage client:load />
  </div>
  <div class='course-variant-2 !hidden'>
    <SQLCourseVariantPage client:load />
  </div>
</SkeletonLayout>
